/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:08:35
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:08:35
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL

/* 关于我们 */
// 新增关于我们
const usCreate = (params) => axios.post(baseUrl + url.us.create, params)

// 删除关于我们
const usDelete = (id) => axios.delete(baseUrl + url.us.delete + `/${id}`)

// 修改关于我们
const usUpdate = (params, id) => axios.post(baseUrl + url.us.update + `/${id}`, params)

// 获取某个关于我们
const usLoad = (id) => axios.get(baseUrl + url.us.load + `/${id}`)

// 获取关于我们列表
const usPage = (params) => axios.get(baseUrl + url.us.page, { params })

export default {
    usCreate,
    usDelete,
    usUpdate,
    usLoad,
    usPage,
}